package br.bovino.pasto;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import br.bovino.R;

public class Pasto extends Activity {
	
	private String[] fazendas = new String[]{"Fazenda 1", "Fazenda 2", "Fazenda 3"};
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.pasto);
		
		//final ImageView imagem = (ImageView) findViewById(R.id.img);
		final Spinner combo = (Spinner) findViewById(R.id.cmdFazenda);
		ArrayAdapter adaptador = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, fazendas);
		adaptador.setDropDownViewResource(android.R.layout.simple_spinner_item);

		combo.setAdapter(adaptador);
		
	}

}
